import request from '@/utils/request'


export function add(data) {
  return request.post('admin/sysapplication/add', data)
}

export function del(data) {
  return request.post('admin/sysapplication//del', data)
}

export function edit(data) {
  return request.post('admin/sysapplication/edit', data)
}

export function getTablePage(data) {
  return request.post('admin/sysapplication/listPage', data)
}

export function getApplicationList() {
  return request.post('admin/sysapplication/listPage', {
    pageNo: 0,
    pageSize: 100
  })
}

export function getApplicationByCompanyId(id) {
  return request.post('admin/sysapplication/list/company/' + id)
}


export default {add, del, edit, getTablePage, getApplicationList, getApplicationByCompanyId}
